<template>
  <div>
    测试也
  </div>
</template>

<script>
import { asyncRoutes } from '@/router'
console.log('原来的动态路由配置', asyncRoutes)
export default {
  created() {
    console.log('国际化', this.$t)
    const menus = this.$store.state.user.userInfo.roles.menus
    console.log('用户权限列表', menus)

    // 过滤动态路由列表
    const newAsyncRoutes = asyncRoutes.filter(item => menus.includes(item.name))
    console.log('过滤后的结果', newAsyncRoutes)
  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
.disable {
  ::v-deep .el-upload--picture-card {
    display: none;
  }
}
</style>
